/* 版心 */
.container {
    margin: 0 auto;
    width: 1200px;
}

/* 清浮动 */
.clearfix::after {
    display: block;
    content: '';
    clear: both;
    height: 0;
}

.clearfix {
    zoom: 1;
}

/* 浮动 */
.fl {
    float: left;
}

.fr {
    float: right;
}



html,
body {
    width: 100%;
    height: 100%;
    background: #F6F6F6;
    position: relative;
}

/* 头部 */
#header {
    height: 160px;
    background: #fff;
    position: relative;
    .shop-link{
        font-size: 14px;
        position: absolute;
        right: 0;
        margin-right: 70px;
        a{
            margin-right: 10px;
            img{
                widows: 32px;
                height: 32px;
            }
        }
    }
    .container {
        .logo {
            display: block;
            margin-top: 50px;
            margin-left: 20px;
            height: 75px;

            img {
                width: 75px;
                height: 75px;
            }

            div {
                margin: 8px 0 0 15px;
                text-align: center;
                color: #43200c;

                h3 {
                    font-size: 28px;
                    font-weight: bold;
                    line-height: 40px;
                }

                p {
                    font-size: 12px;
                    margin-top: 5px;
                    transform: scale(0.8);
                }
            }
        }

        
        .seachBox {
            position: relative;
            margin: 50px 0 0 108px;
            width: 532px;
            height: 48px;
            border: 2px solid #43200c;
            border-radius: 34px;
            background: url(../static/image/search.png) no-repeat center left 15px/20px 20px;

            form {
                input {
                    width: 320px;
                    height: 30px;
                    line-height: 16px;
                    border: none;
                    position: absolute;
                    top: 7px;
                    left: 50px;
                    outline: none;
                }

                button {
                    cursor: pointer;
                    background-color: #fee44e;
                    height: 40px;
                    width: 124px;
                    font-size: 14px;
                    border-radius: 34px;
                    text-align: center;
                    color: #43200c;
                    position: absolute;
                    right: 5px;
                    top: 4px;
                    border: none;
                }
            }
        }

        .right {
            margin: 43px 86px 0 0;
            font-size: 12px;

            div {
                float: left;
                margin-right: 25px;
                text-align: center;
                position: relative;
                width: 44px;
                height: 60px;

                img {
                    width: 40px;
                    height: 40px;
                }

                p {
                    position: absolute;
                    bottom: 0;
                    left: 50%;
                    transform: translateX(-50%);
                    white-space: nowrap;
                }
            }
        }
    }

}

/* 导航栏 */
#nav {
    width: 100%;
    min-width: 1200px;
    background: #43240c;
    height: 46px;

    ul {
        li {
            list-style: none;
            float: left;
            cursor: pointer;
            text-align: center;
            height: 47px;
            line-height: 47px;
            width: 166px;
            color: #fff;

            &:hover {
                background-color: #fee44e;
                color: #43200c;
            }
        }

        :nth-child(1) {
            width: 220px;
            /* 导航选中时的样式 */
            background-color: #fee44e;
            color: #43200c;
        }
    }
}

/* 轮播 */
#banner {
    display: flex;
    position: relative;

    .ul1 {
        list-style: none;
        width: 220px;
        height: 370px;
        background: #fcf9e3;

        .li1,
        .li2,
        .li3,
        .li4,
        .li5,
        .li6,
        .li7,
        .li8,
        .li9 {
            position: relative;
            list-style: none;
            cursor: pointer;
            height: 40px;
            line-height: 40px;
            width: 220px;
            text-align: center;

            &:hover {
                transition: all 0.3s linear;
                background: #fff;
            }

            img {
                height: 20px;
                width: 20px;
                position: absolute;
                top: 13px;
                left: 50px;
            }

            span {
                font-size: 14px;
                color: #43200c;

                &:hover {
                    color: red;
                    text-decoration: underline;
                }
            }
        }
    }

    .add {
        display: none;
    }

    /* 动态菜单 */
    .menu-active {
        position: absolute;
        top: 0;
        left: 220px;
        box-sizing: border-box;
        width: 220px;
        height: 370px;
        background: #fff;
        z-index: 3;
        padding: 10px;
        color: #877a73;

        .menu-title-top,
        .menu-title-bottom {
            h2 {
                font-weight: bold;
                padding-bottom: 5px;
                border-bottom: 1px solid rgb(223, 223, 223);
            }
        }

        .menu-content-top,
        .menu-content-bottom {
            display: flex;
            margin-bottom: 25px;

            li {
                padding: 5px;
                padding-top: 10px;
                font-size: 12px;
                color: #877a73;

                &:hover {
                    color: rgb(245, 88, 88);
                    cursor: pointer;
                }
            }
        }
    }

    .right {
        .top {
            .swiper-container {
                margin-left: 10px;
                width: 660px;
                height: 234px;
                cursor: pointer;

                .swiper-wrapper {
                    width: 100%;
                    height: 100%;
                }

                .swiper-button-prev,
                .swiper-button-next {
                    width: 20px;
                    height: 30px;
                    background-color: rgba(124, 121, 121, 0.5);
                    color: #fff;
                }
            }

            .yellow {
                margin-left: 10px;
                cursor: pointer;
                box-sizing: border-box;
                width: 298px;
                height: 234px;
                background-color: #fff4e4;
                position: relative;

                &:hover {
                    box-shadow: 1px 1px 5px #c4c2c2;
                }

                p {
                    font-size: 24px;
                    color: #ff5817;
                    margin-top: 32px;
                    margin-left: 13px;
                }

                div {
                    height: 36px;
                    background: url(../static/image/bg_orange.png) no-repeat 0px 0px;
                    line-height: 30px;
                    color: #fff;
                    padding-left: 10px;
                    margin-top: 15px;

                }

                img {
                    height: 134px;
                    width: 134px;
                    position: absolute;
                    bottom: 0;
                    right: 0;
                }
            }

        }

        .bottom {
            width: 970px;
            margin-left: 10px;

            .pink {
                position: relative;
                width: 315px;
                height: 128px;
                margin-top: 9px;
                cursor: pointer;
                color: #fff;
                margin-right: 10px;
                border-radius: 18px;
                box-sizing: border-box;
                padding: 26px 34px 16px;
                background: linear-gradient(270deg, #ffd1dd, #fca6c0);

                &:hover {
                    box-shadow: 1px 1px 5px #c4c2c2;
                }

                .text {
                    h3 {
                        font-size: 22px;
                        font-weight: bold;
                    }

                    p {
                        font-size: 18px;
                    }

                    button {
                        width: 47px;
                        height: 20px;
                        line-height: 20px;
                        text-align: center;
                        margin-top: 10px;
                        background-color: #fff;
                        border-radius: 10px;
                        color: #fca6c0;
                        border: none;
                    }
                }

                img {
                    position: absolute;
                    top: 0px;
                    right: 0px;
                    width: 125px;
                    height: 125px;
                }

            }

            .orange {
                background: linear-gradient(270deg, #fffffe, #fec07e);

                .text {
                    button {
                        color: #fec07e;
                    }
                }

            }

            .blue {
                background: linear-gradient(270deg, #e7f5ff, #afdcff);
                margin-right: 0;
                position: relative;

                img {
                    box-sizing: border-box;
                    position: absolute;
                    top: 50%;
                    right: 20px;
                    margin-top: -50px;
                    width: 100px;
                    height: 100px;
                    border: 8px solid #afdcff;
                    border-radius: 18px;
                }
            }
        }

    }
}

/* 小编精选 */
#title {
    background: #fff;
    height: 56px;
    line-height: 56px;
    margin-top: 10px;
    margin-bottom: 20px;

    h4 {
        display: inline-block;
        font-size: 18px;
        color: #43240c;
        margin-left: 52px;
    }

    span {
        font-size: 14px;
        margin-left: 30px;
        color: #877a73;
    }
}

/* 商品选择列表 */
#productsList {
    ul {
        width: 1200px;
        display: flex;
        justify-content: start;
        flex-wrap: wrap;

        li {
            width: 276px;
            background: #fff;
            cursor: pointer;
            margin-top: 20px;
            margin-left: 20px;

            &:hover {
                box-shadow: 1px 1px 5px #c4c2c2;
            }

            img {
                width: 276px;
                height: 276px;
            }

            span {
                display: none;
            }

            .bottom {
                padding: 10px 17px;

                p {
                    display: block;
                    font-size: 14px;
                    color: #877a73;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    line-height: 18px;
                    overflow: hidden;
                    margin: 10px 17px;
                }

                .from {
                    display: flex;
                    justify-content: space-between;
                    margin-bottom: 20px;

                    :nth-child(1) {
                        display: inline-block;
                        padding: 0 6px;
                        height: 20px;
                        line-height: 20px;
                        background-color: #f40;
                        text-align: center;
                        color: #fff;
                        width: 40px;
                        border-radius: 3px;

                    }

                    :nth-child(2) {
                        color: #877a73;
                        display: inline-block;
                        width: 50px;
                    }
                }

                .message {
                    position: relative;

                    span {
                        display: inline-block;
                        color: #fa585a;
                        font-weight: 400px;
                    }

                    :nth-child(1) {
                        font-size: 12px;

                        line-height: 12px;
                    }

                    :nth-child(2) {
                        font-size: 28px;
                        line-height: 28px;
                    }

                    // :nth-child(3) {
                    //     font-size: 18px;
                    //     line-height: 20px;
                    // }

                    :nth-child(3) {
                        font-size: 14px;
                        color: #877a73;
                    }

                    :nth-child(4) {
                        color: #fa585a;
                        display: inline-block;
                        width: 60px;
                        font-size: 12px;
                        line-height: 20px;
                        height: 20px;
                        border: 1px solid #fa585a;
                        background: #fff;
                        position: absolute;
                        right: 0;
                        bottom: 0;
                        cursor: pointer;
                        border-radius: 2px;
                    }
                }
            }


        }
    }
}

/* 查看更多 */
#more {
    .moreBox {
        box-sizing: border-box;
        padding-top: 126px;
        padding-bottom: 80px;
        width: 1168px;

        .getmore {
            display: block;
            cursor: pointer;
            text-align: center;
            color: #43240c;
            background: #fee44e;
            border-radius: 35px;
            line-height: 70px;
            height: 70px;
            width: 250px;
            margin: 0 auto;
            font-size: 24px;
            font-weight: 500;
        }
    }

}

/* 页脚 */
#footer {
    width: 100%;
    height: 240px;
    color: white;
    background: #484848;
    position: relative;

    .container {
        .top {
            height: 112px;
            display: flex;
            position: relative;

            .left {
                display: flex;

                img {
                    width: 112px;
                    height: 112px;
                    margin: 37px 20px 0 40px;
                    border-radius: 20px;
                }

                .text {
                    margin-top: 50px;

                    h3 {
                        font-size: 36px;
                        height: 42px;
                        font-weight: bold;
                    }

                    p {
                        font-size: 18px;
                        line-height: 25px;
                    }
                }
            }

            .right {
                margin-top: 37px;
                position: absolute;
                top: 50%;
                left: 50%;
                margin-left: -50px;

                a {
                    color: #fff;
                    font-size: 20px;

                    &:hover {
                        color: rgb(236, 117, 96);
                    }
                }
            }
        }

        .bottom {
            width: 800px;
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 18px;

            span {
                img {
                    width: 22px;
                    height: 22px;
                }
            }

            a {
                color: #fff;
            }
        }
    }
}

#security {
    position: relative;
    height: 90px;

    img {
        width: 83px;
        height: 30px;
        position: absolute;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
    }
}

/* 回到顶部 */
#backTop {
    cursor: pointer;
    position: fixed;
    right: 50px;
    top: 150px;
    width: 64px;
    height: 64px;

    img {
        width: 100%;
        height: 100%;

    }
}